//
//  YTDriverCarServices.m
//  YiTuDriverClient
//
//  Created by 石少庸 on 2017/7/14.
//  Copyright © 2017年 Yitu. All rights reserved.
//

#import "YTDriverCarServices.h"

@implementation YTDriverCarServices

+ (RACSignal *)getCarListData:(NSDictionary *)dataDict {
    return [self requestWithURL:@"car/getCarList" paramters:dataDict];
}

+ (RACSignal *)getCarBandAndColor {
    return [[self requestWithURL:@"car/getBrandColorList" paramters:nil] replayLazily];
}

+ (RACSignal *)getCarColor {
    return [self requestWithURL:@"car/getColorList" paramters:nil];
}

+ (RACSignal *)carDetailWithID:(NSString *)car_id {
    return [self requestWithURL:@"car/getCarDetail" paramters:@{@"carId" : car_id}];
}

+ (RACSignal *)carSeatType {
    return [self requestWithURL:@"car/getSeatType" paramters:nil];
}

+ (RACSignal *)addCarWithData:(NSDictionary *)data {
    return [[self requestWithURL:@"car/addCar" paramters:data] replayLazily];
}

+ (RACSignal *)deleteCarWith:(NSDictionary *)data {
    return [self requestWithURL:@"car/deleteCar" paramters:data];
}

+ (RACSignal *)activeCar:(NSDictionary *)data {
    return [self requestWithURL:@"car/updateCarStatus" paramters:data];
}

+ (RACSignal *)updateCarInfo:(NSDictionary *)data {
    return [self requestWithURL:@"car/updateCar" paramters:data];
}

+ (RACSignal *)teamDriverList:(NSDictionary *)data {
    return [self requestWithURL:@"driverteam/carList"
                      paramters:data];
}

@end
